import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:get/get_navigation/get_navigation.dart';
import 'package:hc_bot_kit/service/service.dart';
import 'package:hc_bot_kit/ui/guide_setting/view.dart';
import 'package:hc_bot_kit_example/guide/view.dart';
import 'package:hc_bot_kit_example/home/view.dart';

void main() {
  runApp(const App());
}

class App extends StatelessWidget {
  const App({super.key});

  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      initialRoute: "/home",
      initialBinding: AppBinding(),
      getPages: [
        GetPage(name: "/home", page: () => const HomePage()),
        GetPage(name: "/setting", page: () => const GuideSettingPage()),
        GetPage(name: "/guide", page: () => const GuidePage()),
      ],
    );
  }
}

class AppBinding extends Bindings {
  @override
  void dependencies() {
    Get.put(RobotHardwareService(), permanent: true);
  }
}
